package com.youbang.bsMgr.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageInfo;
import com.youbang.base.service.BaseServiceImpl;
import com.youbang.bsMgr.user.dao.UserDao;
import com.youbang.bsMgr.user.model.UserEntity;

@Service
public class UserServicImpl extends BaseServiceImpl  implements UserService{
	@Autowired
	private UserDao userDao;
	
	@Override
	public UserEntity queryEntity(Long id) {
		try {
			return userDao.queryEntity(id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public UserEntity queryEntityByLoginId(String loginId){
		try {
			return userDao.queryEntityByLoginId(loginId);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public PageInfo queryList() {
		// TODO Auto-generated method stub
		return null;
	}
}
